/**
 * 测试方法案例
 */

public class TestMethod2 {

    public static int handleLate(int lateMinute,int salary){
        System.out.println("迟到分钟数"+lateMinute);
        System.out.println("月薪"+salary);
        int fuHuan = 0;
        double daySalary =salary/22.5;
        if(lateMinute<=10){
            System.out.println("警告");
        }else if(lateMinute<=20) {
            fuHuan = 100;
            System.out.println("罚款"+fuHuan);
        }else if(lateMinute<=30){
            fuHuan = 200;
            System.out.println("罚款"+200);
        }else if(lateMinute<=60){
            fuHuan =(int)daySalary/2;
            System.out.println("罚款"+fuHuan);
        }else {
            fuHuan = (int)daySalary*3;
            System.out.println("罚款"+fuHuan);
        }
        System.out.println("实发工资"+(salary-fuHuan));
        return fuHuan;
    }

    public static void main(String[] args) {
       // handleLate(25,8000);
       //可以直接调用
       int a = handleLate(30,6000);
       int b = handleLate(45,7800);
       int c = handleLate(62,10000);
    }
}




